package homework1127;

public class Worker2 implements Runnable {
    private String work_name;

    public String getWork_name() {
        return work_name;
    }

    public void setWork_name(String work_name) {
        this.work_name = work_name;
    }

    public void work(){
        for (int i = 0; i < 10; i++) {
            System.out.println(work_name+":"+i);
        }
    }

    @Override
    public void run() {
        work();
    }
}
